80s toys - Atari. I still have

Welcome to nimbuzz4all.waphall.com

Form



HTML form and input tutorial




FORM

is a area that can contains form elements. a form is defined with the <form> tag.



<form> <input> </form>




INPUT

the most used form tag is the <input> tag. the type of input is specified with the type attribute.




Text fields

are used when you want the to type letters, numbers. etc. in a form.



<form>username:<input type="text" name="username"><br/>password:<input type="pwd" name="password"></form>


username:
password:




Radio buttons

are used when you want the user to select one of a limited number of choices.



<form><input type="radio" name="gender" value="male">male<br/&gt;<input type="radio" name="gender" value="female">female</form>


male
female




Checkboxes

are used when you want the user to select one or more options of a limited number of choices.



<form>druglord<input type="checkbox" name="drug" value="drug"><br/>criminal<input type="checkbox" name="criminal" value="criminal"><br/>rapist<input type="checkbox" name="rapist" value="rapist"></form>



druglord
criminal
rapist




The form's action attribute and the submit button

when the user clicks on the "submit" button, the content of the form is sent to the server. the forms actinn attributes defines the name of the file to send the content to. the file defined in the action attribute usually does something with the receive input.



<form name="input" action="html_form_submit.asp" method="get">username<input type="text" name="user"><input type="submit" value="submit"></form>


username:


Home

posted by mr.sajaniya